package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsXcxkfBannerMapper;
import com.ruoyi.cms.domain.CmsXcxkfBanner;
import com.ruoyi.cms.service.ICmsXcxkfBannerService;

/**
 * 小程序信息模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
@Service
public class CmsXcxkfBannerServiceImpl implements ICmsXcxkfBannerService 
{
    @Autowired
    private CmsXcxkfBannerMapper cmsXcxkfBannerMapper;

    /**
     * 查询小程序信息模块
     * 
     * @param id4 小程序信息模块主键
     * @return 小程序信息模块
     */
    @Override
    public CmsXcxkfBanner selectCmsXcxkfBannerById4(Long id4)
    {
        return cmsXcxkfBannerMapper.selectCmsXcxkfBannerById4(id4);
    }

    /**
     * 查询小程序信息模块列表
     * 
     * @param cmsXcxkfBanner 小程序信息模块
     * @return 小程序信息模块
     */
    @Override
    public List<CmsXcxkfBanner> selectCmsXcxkfBannerList(CmsXcxkfBanner cmsXcxkfBanner)
    {
        return cmsXcxkfBannerMapper.selectCmsXcxkfBannerList(cmsXcxkfBanner);
    }

    /**
     * 新增小程序信息模块
     * 
     * @param cmsXcxkfBanner 小程序信息模块
     * @return 结果
     */
    @Override
    public int insertCmsXcxkfBanner(CmsXcxkfBanner cmsXcxkfBanner)
    {
        return cmsXcxkfBannerMapper.insertCmsXcxkfBanner(cmsXcxkfBanner);
    }

    /**
     * 修改小程序信息模块
     * 
     * @param cmsXcxkfBanner 小程序信息模块
     * @return 结果
     */
    @Override
    public int updateCmsXcxkfBanner(CmsXcxkfBanner cmsXcxkfBanner)
    {
        return cmsXcxkfBannerMapper.updateCmsXcxkfBanner(cmsXcxkfBanner);
    }

    /**
     * 批量删除小程序信息模块
     * 
     * @param id4s 需要删除的小程序信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsXcxkfBannerById4s(Long[] id4s)
    {
        return cmsXcxkfBannerMapper.deleteCmsXcxkfBannerById4s(id4s);
    }

    /**
     * 删除小程序信息模块信息
     * 
     * @param id4 小程序信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsXcxkfBannerById4(Long id4)
    {
        return cmsXcxkfBannerMapper.deleteCmsXcxkfBannerById4(id4);
    }
}
